home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / windows / games / wincapt.arj / WINCAP.H < prev    next >
Text File  |  1992-07-07  |  2KB  |  85 lines

  1. /* Header file for wincap.c */
  2. /* Copyright (c) 1991 Microsoft Corporation. All rights reserved. */
  3.  
  4. //
  5. // constants for menu items 
  6. //
  7.  
  8.  
  9. #define IDM_SAVE            110
  10. #define IDM_PRINT           120
  11. #define IDM_EXIT            130
  12. #define IDM_ABOUT           140
  13. #define IDM_CAPTWINDOW      210
  14. #define IDM_CAPTCLIENT      220
  15. #define IDM_CAPTRECT        230
  16. #define IDM_CAPTUREHIDE     240
  17. #define IDM_ACTIVEWINDOW    250
  18. #define IDM_DESKTOP         260
  19. #define IDM_VIEWFULL        310
  20. #define IDM_VIEWRESTORED    320
  21. #define IDM_VIEWCLEAR       330
  22.  
  23.  
  24. // Constants for string table
  25.  
  26. #define IDS_SAVEASTITLE      1
  27.  
  28.  
  29.  
  30. #define OPTION_FILE        0x0001
  31. #define OPTION_PRINTER     0x0002
  32.  
  33. // For common dialog file/save
  34.  
  35. #define IDD_FILETYPE        101
  36. #define IDD_RGB             102
  37. #define IDD_RLE4            103
  38. #define IDD_RLE8            104
  39. #define IDD_PM              105
  40. #define IDD_1               106
  41. #define IDD_4               107
  42. #define IDD_8               108
  43. #define IDD_24              109
  44. #define IDD_FILETYPEGROUP   110
  45. #define IDD_BPP             111
  46.  
  47. // Stuff for "File.Print" dialog
  48.  
  49. typedef struct tagOPTIONS {
  50.     int iOption;       // Print Options
  51.     int iXScale;       // X scale factor (if iOption is DLGPRINT_SCALE)
  52.     int iYScale;       // Y scale factor ('')
  53.     } OPTIONSTRUCT;
  54.  
  55. typedef OPTIONSTRUCT FAR *LPOPTIONSTRUCT;
  56.  
  57. /*
  58.  * function prototypes
  59.  */
  60.  
  61. void cwCenter(HWND, int);
  62. LONG FAR PASCAL WndProc(HWND, WORD, WORD, LONG);
  63. BOOL FAR PASCAL PrintDlgProc(HWND, WORD, WORD, LONG);
  64. BOOL FAR PASCAL AboutDlgProc(HWND, WORD, WORD, LONG);
  65. int FAR PASCAL InstallHook (HWND hWnd, BOOL bCode );
  66. BOOL FAR PASCAL HelpDlgProc(HWND, WORD, WORD, LONG);
  67. BOOL FAR PASCAL SavingDlgProc(HWND, WORD, WORD, LONG);
  68. BOOL GetFileName (HWND hWndOwner, LPSTR szFileName, LPDWORD dwFlags);
  69. void DrawIndent(HWND hDlg, int ID, int iType);
  70. void StretchIconToWindow(HWND hWndDlg, LPSTR szIconName);
  71. void DoCapture(HWND hWnd, WORD wCommand);
  72. void RubberBandScreen(LPRECT lpRect);
  73. void DrawSelect( HDC hdc, BOOL fDraw, LPRECT lprClip);
  74. void PASCAL NormalizeRect (LPRECT prc);
  75. HWND SelectWindow(void);
  76. LONG FAR PASCAL FullViewWndProc(HWND, WORD, WORD, LONG);
  77. void SaveMe(void);
  78. void PrintMe(void);
  79. void DoSize(HWND);
  80. void ReallyGetClientRect(HWND, LPRECT);
  81. void SetupScrollBars(HWND, WORD, WORD);
  82. void DoScroll(HWND, int, WORD, WORD);
  83. void DoPaint(HWND);
  84.  
  85.